package cn.cvs.dao.sysUser;

import cn.cvs.pojo.SysUser;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class SysUserMapperImpl implements  SysUserMapper {
    private SqlSessionTemplate sqlSession;

    public SqlSessionTemplate getSqlSession() {
        return sqlSession;
    }

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }

    @Override
    public int AddSysUserResult(SysUser sysUser) {
        return sqlSession.insert("cn.cvs.dao.sysUser.SysUserMapper.AddSysUserResult", sysUser);
    }

    @Override
    public int deleteSysUser(int id) {
        return sqlSession.delete("cn.cvs.dao.sysUser.SysUserMapper.deleteSysUser", id);
    }

    @Override
    public int updateSysUser(SysUser sysUser) {
        return sqlSession.update("cn.cvs.dao.sysUser.SysUserMapper.updateSysUser",sysUser);
    }
}
